package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);


    /**
     * @description //新增员工
     * @param employeeDTO
     * @return void
     * @author riverlyn
     * @date 2024/10/4 14:42
     */
    void save(EmployeeDTO employeeDTO);

    /**
     * @description //查询用户信息
     * @param username
     * @return void
     * @author riverlyn
     * @date 2024/10/4 18:34
     */
    Employee getUserInfo(String username);


    /**
     * @description //分页查询
     * @param employeePageQueryDTO
     * @return com.sky.result.PageResult
     * @author riverlyn
     * @date 2024/10/4 20:13
     */
    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * @description //启用禁用账号
     * @param status,id
     * @return void
     * @author riverlyn
     * @date 2024/10/5 11:34
     */
    void startOrStop(Integer status, Long id);

    Employee getById(Integer id);

    void update(EmployeeDTO employeeDTO);
}
